/*!


*/
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Deserialize, Default, Debug, Serialize,Clone)]
pub struct Config {
    #[serde(default)]    
    pub pkg_name: String,
    #[serde(default)]    
    pub site_root: String,
    #[serde(default)]    
    pub site_pkg: String,
    #[serde(default)]    
    pub site_port: u16,
    #[serde(default)]    
    pub futures: HashMap<String, Vec<SubFutureInfo> >,
}


#[derive(Serialize, Deserialize, Debug, Default)]
 pub struct SearchParams {
   #[serde(default)]
   pub query: String,   
}

#[derive(Debug, Deserialize, Serialize, Clone, Default)]
pub struct SubFutureInfo{
    /// 代码, AP510
    pub code: String,
    /// 服务器ip:port, 8.155.160.209:9994
    pub addr: String,   
}     
